﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/AdmMasterPage.master" AutoEventWireup="true" CodeFile="0601.aspx.cs" Inherits="admin_UC06_0601" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="aspnetpager" Namespace="Wuqi.Webdiyer" TagPrefix="Webdiyer" %>
<%@ Register Src="../UserControl/CKEditor.ascx" TagName="CKEditor" TagPrefix="uc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
        <asp:Panel ID="pnlContent" runat="server">
        <fieldset class="fieldset">
            <h1>
                會員編輯</h1>
            <table style="width: 100%" class="FormTable">
                
                <tr>
                    <td>
                        姓名
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        性別
                    </td>
                    <td>
                        <asp:RadioButtonList ID="rdoSex" runat="server" Enabled="false" RepeatDirection="Horizontal">
                            <asp:ListItem Text="男" Value="男"></asp:ListItem>
                            <asp:ListItem Text="女" Value="女"></asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td>
                        生日
                    </td>
                    <td>
                        <asp:TextBox ID="txtBirthDay" runat="server" Enabled="false" Width="80px" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        帳號
                    </td>
                    <td>
                        <asp:TextBox ID="txtLoginId" runat="server" Width="280" Enabled="false"></asp:TextBox>
                    </td>
                </tr> 
                <tr>
                    <td>
                        Email
                    </td>
                    <td>
                        <asp:TextBox ID="txtEMail" runat="server" Width="280" Enabled="false"></asp:TextBox>
                    </td>
                </tr>    
                <tr>
                    <td>
                        手機
                    </td>
                    <td>
                        <asp:TextBox ID="txtMobile" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>   
                <tr>
                    <td>
                        縣市/地址
                    </td>
                    <td>
                        <asp:TextBox ID="txtCity" runat="server" Width="80" Enabled="false"></asp:TextBox>
                        <asp:TextBox ID="txtAddress" runat="server" Width="300" Enabled="false"></asp:TextBox>
                    </td>
                </tr>  
                <tr>
                    <td>
                        公司
                    </td>
                    <td>
                        <asp:TextBox ID="txtCompany" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>  
                <tr>
                    <td>
                        職稱
                    </td>
                    <td>
                        <asp:TextBox ID="txtJobTitle" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>  
                <tr>
                    <td>
                        室內電話
                    </td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="100px" Enabled="false"></asp:TextBox>
                    </td>
                </tr>                  
                <tr>
                    <td>
                        註冊FB 之信箱
                    </td>
                    <td>
                        <asp:TextBox ID="txtFB_Email" runat="server" Width="280" Enabled="false"></asp:TextBox>
                    </td>
                </tr> 
                <tr>
                    <td>
                        接受訊息
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlEpaper" runat="server" Enabled="false">
                            <asp:ListItem Text="是" Value="True"></asp:ListItem>
                            <asp:ListItem Text="否" Value="False"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr> 
                <tr>
                    <td>
                        啟用
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlFlag" runat="server">
                            <asp:ListItem Text="是" Value="1"></asp:ListItem>
                            <asp:ListItem Text="否" Value="0"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>   
                <tr>
                    <td colspan="2" height="30px" align="center">
                        <asp:Button ID="btnSave" runat="server" Text="儲存修改" OnClick="btnSave_Click" />
                        <asp:Button ID="btnCancel" runat="server" Text="取消" OnClick="btnCancel_Click" CausesValidation="false" />
                        <asp:Label ID="Label1" runat="server" Text="" ForeColor="Red" EnableViewState="false"></asp:Label>
                    </td>
                </tr>
            </table>
        </fieldset>
    </asp:Panel>
    <br />
            <asp:Panel ID="Panel1" runat="server" DefaultButton="btnQuery">
                <table style="width: 100%" class="FormTable" align="center">
                    <tr>
                        <td height="30px" colspan="2" class="labelHeader">
                            <div align="center" id="title">
                                會員查詢</div>
                            <hr border="1" />
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            狀態：
                        </td>
                        <td height="30px" style="text-align: left">
                            <asp:DropDownList ID="ddlSearchFlag" runat="server">
                                <asp:ListItem Text="全部" Value=""></asp:ListItem>
                                <asp:ListItem Text="啟用" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="停用" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td width="100">
                            姓名：
                        </td>
                        <td height="30px" style="text-align: left">
                            <asp:TextBox ID="txtSearchName" runat="server"></asp:TextBox>
                        </td>                        
                    </tr>
                    <tr>
                        <td colspan="2" height="30px" align="center">
                            <asp:ImageButton ID="btnQuery" runat="server" ImageUrl="~/admin/images/inner/button_search.gif"
                                OnClick="btnQuery_Click" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <br />
            <div align="center">
                <asp:GridView ID="gvDetail" runat="server" AutoGenerateColumns="False" Width="100%"
                    CssClass="datagrid" OnRowDataBound="gvDetail_RowDataBound" OnRowCommand="gvDetail_RowCommand">
                    <SelectedRowStyle CssClass="SelectedRowStyle" />
                    <Columns>
                        <asp:BoundField DataField="CreateTime" HeaderText="日期" ItemStyle-HorizontalAlign="Left">
                            <HeaderStyle HorizontalAlign="Center" />
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemStyle Width="20%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Name" HeaderText="姓名" ItemStyle-HorizontalAlign="Left">
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="City" HeaderText="縣市" ItemStyle-HorizontalAlign="Left">
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemStyle Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Address" HeaderText="地址" ItemStyle-HorizontalAlign="Left">
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemStyle Width="20%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="啟用">
                            <ItemTemplate>
                                <asp:Label ID="lblFlag" runat="server"></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="50px" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="EMail" HeaderText="電子信箱" ItemStyle-HorizontalAlign="Left">
                            <HeaderStyle Width="50px" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Mobile" HeaderText="手機" ItemStyle-HorizontalAlign="Left">
                            <HeaderStyle Width="50px" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Sex" HeaderText="性別" ItemStyle-HorizontalAlign="Left">
                            <HeaderStyle Width="50px" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:BoundField> 
                        <asp:TemplateField HeaderText="編輯">
                            <ItemTemplate>
                                <asp:LinkButton ID="btnModify" runat="server" CommandArgument='<%# Eval("MemberId") %>'
                                    Text="編輯" CommandName="myModify" CausesValidation="False" />
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                            <HeaderStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <div align="center" class="labelMsg">
                            找不到符合資料!</div>
                    </EmptyDataTemplate>
                </asp:GridView>
                <Webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="PagerStyle" HorizontalAlign="center"
                    OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox" PageSize="20"
                    ShowPageIndexBox="Never" />
            </div>
</asp:Content>

